<template>
  <div class="body">
    <ul>
      <li v-for="item in list">{{item}}</li>
    </ul>
  </div>
</template>
  
  <script setup>
  import { inject } from 'vue';
  
  const list = inject('list');
  
  </script>
  
  <style lang= "css" scoped>
  
  </style>